package com.hw.model.common;

import lombok.Data;

@Data
public class ResultCode {

    /**
     * 操作成功
     */
    public static final Integer OK = 0;

    /**
     * 失败 -1
     */
    public static final Integer FAIL = -1;

    /**
     * 未登录
     */
    public static final Integer NOLOGIN = -2;

    /**
     * 未知错误
     */
    public static final Integer ERROR = 502;

    /**
     * 未通过token验证
     */
    public static final Integer UNAUTHORIZED = 401;

    /**
     * 无操作权限
     */
    public static final Integer NO_OPERATION_AUTHORITY = 402;

    /**
     * 服务器出现异常
     */
    public static final Integer SERVER_ERROR = 500;

    /**
     * 请求次数过于频繁
     */
    public static final Integer REQUEST_OVER_LIMIT = 502;



}

